;;;Creates plan viewport just inside our standard ARCH-D size sheet border.
;;;Includes a notch around our revision block.
;;;Creates profile viewport on grid indices over our standard ARCH-D size sheet border
;;;and profile grid block.
;;;
;;;Expects the border and grid block to be scaled 1:1 with origin at 0.0,0.0 per standard.
;;;
;;;	Author:
;;;		Henry C. Francis
;;;		425 N. Ashe St.
;;;		Southern Pines, NC 28387
;;;
;;;     http://paracadd.com
;;;	All rights reserved.
;;;
;;;	Copyright: 2-6-2006
;;;	   Edited: 2-28-2007
;;;
(defun c:archdppvp ()
  (command)
  (setq old_vp_osmode (getvar"osmode"))
  (setq old_vp_cecolor (getvar "cecolor"))
  (setq old_vp_celtype (getvar "celtype"))
  (setvar "osmode" 0)
  (setvar "cecolor" "ByLayer")
  (setvar "celtype" "ByLayer")
  (if ukword nil (load "ukword" "File UKWORD.LSP not found! "))
;;;  (setq whichgrid (strcat(ukword 1 "20 30 40 50 60" "Horiz.scale? [20 30 40 50 60]" (if whichgrid (substr whichgrid 1 2) "50")) "ppgrid"))
  (setq whichgrid "50ppgrid-arch-d")
  (command "pspace")
  (command ".-layer" "m" "c-vi027nplt" "")
  (command ".mview" "p" "1.98,12.0" "33.3383,12.0" "33.3383,22.3314" "29.2342,22.3314" "29.2342,23.38" "1.98,23.38" "")
  (command ".-layer" "m" "c-vi017nplt" "")
;;;  (cond
;;;    ((eq (substr whichgrid 1 2) "50")
       (command ".mview" "3.6592,0.97" "31.6592,12.0" "")
;;;    )
;;;    ((or (eq  (substr whichgrid 1 2) "20")(eq (substr whichgrid 1 2) "40"))
;;;       (command ".mview" "4.1592,0.97" "29.1592,11.0" ""))
;;;    ((or (eq (substr whichgrid 1 2) "30")(eq (substr whichgrid 1 2) "60"))
;;;       (command ".mview" "2.6591,0.97" "29.9925,11.0" ""))
;;;  )
  (setvar "osmode" old_vp_osmode)
  (setvar "cecolor" old_vp_cecolor)
  (setvar "celtype" old_vp_celtype)
  (princ)
)